// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },


  globalData: {
    userInfo: null,
    URL:'http://localhost:8801',
    token:'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwZXJzb25QaG9uZSI6IjEyMyIsImF1ZCI6WyIxIiwi5rWL6K-VIiwiMTIzIiwiYWRtaW4iXSwiZXhwIjoxNjQ0MzQ4MDkzLCJpYXQiOjE2NDQyODgwOTN9._xj6sgxzwNQsICANiAYFm-ZPxRpItgHXHOJk0YuGg-U',
    //用户对象
    user: {
      "personCode": "",
      "personName": "",
      "personPhone": "",
      "roleId": "",
      "role": {
        "id": "",
        "roleName": "",
        "roleCode": ""
      },
      "departmentId": "",
      "positionId": ""
    },
  },
 








   
})
